package com.cwj.common.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

/**
 * 用户类
 */
@Data
@TableName("user")
public class user {
    @TableId(value = "uid",type = IdType.AUTO)
    private Integer uid;
    @TableField(value = "username")
    private String username;
    @TableField(value = "password")
    @JsonIgnore  //不能把密码传到前台
    private String password;
    @TableField(value = "email")
    private String email;
    @TableField(value = "head_photo")
    private String headPhoto;
    @TableField(value = "registration_date",fill = FieldFill.INSERT)
    private Date registrationDate;
}
